package com.gtc.zsk.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gtc.zsk.model.dto.vipBankUser.VipBankUserQueryRequest;
import com.gtc.zsk.model.entity.VipBankUser;
import com.gtc.zsk.model.vo.VipBankUserVO;

import javax.servlet.http.HttpServletRequest;

/**
 * 題库vip用户服务
 *
 * @author <a href="https://github.com/ligtc">程序员鱼皮</a>
 * @from <a href="https://www.code-nav.cn">编程导航学习圈</a>
 */
public interface VipBankUserService extends IService<VipBankUser> {

    /**
     * 校验数据
     *
     * @param vipBankUser
     * @param add 对创建的数据进行校验
     */
    void validVipBankUser(VipBankUser vipBankUser, boolean add);

    /**
     * 获取查询条件
     *
     * @param vipBankUserQueryRequest
     * @return
     */
    QueryWrapper<VipBankUser> getQueryWrapper(VipBankUserQueryRequest vipBankUserQueryRequest);
    
    /**
     * 获取題库vip用户封装
     *
     * @param vipBankUser
     * @param request
     * @return
     */
    VipBankUserVO getVipBankUserVO(VipBankUser vipBankUser, HttpServletRequest request);

    /**
     * 分页获取題库vip用户封装
     *
     * @param vipBankUserPage
     * @param request
     * @return
     */
    Page<VipBankUserVO> getVipBankUserVOPage(Page<VipBankUser> vipBankUserPage, HttpServletRequest request);
}
